import request from '@/utils/request'

// 查询保存点管理列表
export function listSavepoint(query) {
    return request({
        url: '/resource/savepoint/list',
        method: 'get',
        params: query
    })
}

// 查询保存点管理详细
export function getSavepoint(id) {
    return request({
        url: '/resource/savepoint/' + id,
        method: 'get'
    })
}

// 新增保存点管理
export function addSavepoint(data) {
    return request({
        url: '/resource/savepoint',
        method: 'post',
        data: data
    })
}

// 修改保存点管理
export function updateSavepoint(data) {
    return request({
        url: '/resource/savepoint',
        method: 'put',
        data: data
    })
}

// 删除保存点管理
export function delSavepoint(id) {
    return request({
        url: '/resource/savepoint/' + id,
        method: 'delete'
    })
}

//获取检查点
export function getCheckPointByJobId(jobId) {
    return request({
        url: '/resource/savepoint/getCheckPointByJobId/' + jobId,
        method: 'get'
    })
}

//获取保存点
export function getSavePointByJobId(jobId) {
    return request({
        url: '/resource/savepoint/getSavePointByJobId/' + jobId,
        method: 'get'
    })
}



